<?php
$o = "<?php ";

# includes incapsulation
$l = scandir($oh['path']."/includes");
foreach($l as $i) {
	if (preg_match('/^oh\..*\.include\.php$/',$i)) {
		$o.= substr(file_get_contents($oh['path']."/includes/".$i),5);
	}
}

/* # modules incapsulation
$m = scandir($oh['path']."/modules");
foreach($l as $i) {
	if (preg_match('/^oh\..*\.include\.php$/',$i)) {
		$o.= substr(file_get_contents($oh['path']."/includes/".$i),5);
	}
}
*/

# store mini
file_put_contents($oh['path']."/mini/oh.framework.boot.php",$o);

# require mini
require_once($oh['path']."/mini/oh.framework.boot.php");
